<template>
  <div class="HomeWrap">
    <el-container class="main_container">
      <el-header>
        <div class="system-item" style="color: #1551ad; front-size: 18px; font-weight: bold;margin-left: 5px"  >
          <a href="">
            <img
                style="
              width: 40px;
              height: 40px;
              margin-right: 10px;
              border-radius: 50%;
              margin-top: 5px;
            " src="./images/logo.png"
            />
          </a>
          实训项目管理系统
        </div>
        <div class="system-item2">
          <el-breadcrumb separator="/">
            <el-breadcrumb-item><router-link to="/"><i style="font-size:20px;" class="el-icon-switch-button"></i></router-link></el-breadcrumb-item>
          </el-breadcrumb>
        </div>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-row class="tac">
            <el-col :span="12">
              <el-menu
                  default-active="2"
                  class="el-menu-vertical-demo"
                  @open="handleOpen"
                  @close="handleClose"
                  background-color="white"
                  text-color="#016bb7"
                  active-text-color="white"
                  style=" justify-content: left;text-align: left ;padding-left: 8px"
              >
                <el-submenu index="1" style="font-weight: bold" >
                  <template slot="title" >
                    <i class="el-icon-menu" style="color: #016bb7"></i>
                    <span style="font-size:15px">教师管理</span>
                  </template>
                  <el-menu-item-group style="font-weight: bold;">
                    <el-menu-item index="1-1" style="font-size: 13px">
                      <router-link to="add_teacher" tag="div">-  实训班教师</router-link>
                    </el-menu-item>
                  </el-menu-item-group>
                </el-submenu>
                <el-submenu index="2" style="font-weight: bold" >
                  <template slot="title" >
                    <i class="el-icon-menu" style="color: #016bb7"></i>
                    <span style="font-size:15px">实训班管理</span>
                  </template>
                  <el-menu-item-group style="font-weight: bold;">
                    <el-menu-item index="2-1" style="font-size: 13px">
                      <router-link to="management_class" tag="div">-  实训班管理</router-link>
                    </el-menu-item>
                    <el-menu-item index="2-2" style="font-size: 13px">
                      <router-link to="expert_rating" tag="div">-  专家评分</router-link>
                    </el-menu-item>
                    <!-- <el-menu-item index="2-3" style="font-size: 13px">
                      <router-link to="/" tag="div">-  教师评分</router-link>
                    </el-menu-item> -->
                  </el-menu-item-group>
                </el-submenu>
                <el-submenu index="3" style="font-weight: bold" >
                  <template slot="title" >
                    <i class="el-icon-menu" style="color: #016bb7"></i>
                    <span style="font-size:15px">专家管理</span>
                  </template>
                  <el-menu-item-group style="font-weight: bold;">
                    <el-menu-item index="3-1" style="font-size: 13px">
                      <router-link to="expert" tag="div">-  专家管理</router-link>
                    </el-menu-item>
                  </el-menu-item-group>
                </el-submenu>
              </el-menu>
            </el-col>
          </el-row>
        </el-aside>
        <el-container>
          <el-main>
            <router-view></router-view>
          </el-main>

        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  data(){
    return{
      // id:this.$route.params.id,
      id:this.$route.query.id,
    }
  },
  methods: {
    // 左部菜单栏
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}

</script>

<style scoped>
.HomeWrap{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.main_container{
  height: 100%;
}

/*模块*/
.el-header {
  background-color: white;
  color: #1551ad;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: white;
  color: #1551ad;
  text-align: center;
  line-height: 200px;
}

/*解决左侧导航栏主菜单宽度问题*/
.el-col-12 /deep/ {
  width: 100%;
}

/*解决左侧导航栏有滚动条问题*/
.el-aside::-webkit-scrollbar /deep/ {
  display: none;
}


/*解决左侧导航栏字母菜单栏长度问题*/
.el-menu-item-group__title /deep/ {
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
}
/*解决左侧子菜单太长*/
.el-menu-item {
  height: 45px;
  line-height: 45px;
}
.el-menu-item-group__title /deep/{
  padding: 0;
}

.el-main {
  background-color: #f2f3f6;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}

/*header*/
.system-item {
  display: flex;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 6px;
  width: 200px;
  line-height: 45px;
  text-align: center;
  color: #009688;
  font-size: 16px;
}

.system-item2 {
  display: flex;
  justify-content: center;
  position: absolute;
  margin-left: 1100px;
  margin-top: 25px;
  text-align: center;
  color: #016bb7;
}

/*header右侧字体颜色修改*/
.el-breadcrumb__inner a {
  color: #016bb7;
}

.el-breadcrumb__item:last-child .el-breadcrumb__inner a {
  color: #016bb7;
}
.el-menu-item.is-active {
  background-color: #7d94c0 !important;
}
.el-submenu /deep/.el-submenu__title:hover {
  background-color: #cdd9ef !important;
}
.el-menu-item:hover {
  background-color: #cdd9ef !important;
}
.el-menu-item-group__title /deep/{
  padding: 0;
}
/*.el-icon-location{*/
/*  min-width: 200px;*/
/*}*/


</style>
